package com.java.comprehensive.other.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: 窦绍飞
 * @Date: 2022/5/29
 */
//@Component
@ConfigurationProperties(prefix = "man")
public class ManConfig {

	private String name;
	private Integer age;


	@Override
	public String toString() {
		return "ManConfig{" +
				"name='" + name + '\'' +
				", age=" + age +
				'}';
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}
}
